package StructuralMode.decorator.fastFood;

public class Client {
    public static void main(String[] args) {
          FastFoot fastFoot = new Friedrice("炒饭",10);
          System.out.println( fastFoot.imputedPrice());

          FastFoot fastFoot1 = new DecoratorEgg(new Friedrice("炒饭",10),"鸡蛋",5);
          System.out.println(fastFoot1.imputedPrice());

          FastFoot fastFoot2 =new DecoratorEgg(new DecoratorEgg(new Friedrice("炒饭",10),"鸡蛋",5),"鸡蛋",10);
          System.out.println(fastFoot2.imputedPrice());
    }
}
